package top.zsyle.sycc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseSearchDto {

    private String chargeName;

    private Long courseTypeId;

    private String gradeName;

    private String keyword;

    private Integer page = 1;

    private BigDecimal priceMax;

    private BigDecimal priceMin;

    private Integer rows = 12;
    //排序字段
    private String sortField;
    //排序模式
    private String sortType;

    public Integer getPage() {
        return page - 1;
    }
}
